package huanzhao.erp.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;

@TableName(value = "phone_detail")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PhoneDetail implements Serializable {

    @TableId(value = "phone_id")
    private Long phoneId;

    /**
     * 采购员id
     */
    @TableField(value = "purchaser_id")
    private Long purchaserId;

    /**
     * 采购平台
     */
    @TableField(value = "platform")
    private String platform;

    /**
     * 采购价格
     */
    @TableField(value = "price")
    private BigDecimal price;

    /**
     * 采购员外部账号id
     */
    @TableField(value = "external_account_id")
    private Long externalAccountId;

    /**
     * 采购等级
     */
    @TableField(value = "purchase_level")
    private String purchaseLevel;

    /**
     * 采购平台订单号
     */
    @TableField(value = "purchase_order")
    private String purchaseOrder;

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}